package testapp.android.huawei.testapp;

import android.util.Log;

import java.lang.RuntimeException;


public class MyLog {
    public static final String TAG = "MyLog";

    public static void  logStackHere() {
        Log.i(TAG,"logStackHere begin");

        Exception e = new Exception("houchq");
        e.printStackTrace();

        //RuntimeException here = new RuntimeException("houchq");
        //here.fillInStackTrace();
        //Log.w(TAG, "Called: "+ here);
    }

    public static void logString(String str) {
        Log.i(TAG,"here is String:" + str);
    }

    public static void logStrInt(String str ,int i) {
        Log.i(TAG,"here is :" + str + ", value is:" + i);
    }

    public static void logStrBool(String str, boolean i) {
        Log.i(TAG,"here is :" + str + ", boolean value is:" + i);
    }


    public static void logRuntimeException(RuntimeException e) {
        Log.i(TAG,"here is log runtimeexception");
        e.printStackTrace();
    }

    public static void logInt(int i) {
        Log.i(TAG,"value is:" + i);
    }

    public static void logObject(Object obj) {
        Log.i(TAG,"obj is:" + obj);
    }

    public static void log1() {
        Log.i(TAG,"here is log1");
    }

    public static void log2() {
        Log.i(TAG,"here is log2");
    }

    public static void log3() {
        Log.i(TAG,"here is log3");
    }

    public static void log4() {
        Log.i(TAG,"here is log4");
    }

    public static void log5() {
        Log.i(TAG,"here is log5");
    }

    public static void log6() {
        Log.i(TAG,"here is log6");
    }

    public static void log7() {
        Log.i(TAG,"here is log7");
    }

    public static void log8() {
        Log.i(TAG,"here is log4");
    }
}
